-include ../../../petscdir.mk

include ${PETSC_DIR}/lib/petsc/conf/variables
include ${PETSC_DIR}/lib/petsc/conf/rules

# set the conditional prerequisites after including the 'variables' file, so we
# can reference make macros defined by it, but before including the 'test' file,
# so that ex18 has correct full prerequisites (instead of the default ex18.o)
ex18objs := ex18.o
ifneq ($(CUDAC),)
  ex18objs += ex18cu.o
endif
ifneq ($(KOKKOS_LIB),)
  ex18objs += ex18kok.o
endif
ex18 : ${ex18objs}

